Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Plan Trip Button to Advanced Mode Settings Page #1244

Merged

Conversation

amy-corson-ibigroup
Copy link
Contributor

@amy-corson-ibigroup amy-corson-ibigroup commented Jul 2, 2024

Description:

  • Adds 'back' and "plan trip" buttons to the advanced trip form
  • Moves around some of the planQuery logic to allow it to be accessed by the advanced trip form
  • Adds a toast notification when the advanced settings close, indicating to the user that the settings have been saved
image

PR Checklist:

  • Does the code follow accessibility standards (WCAG 2.1 AA Compliant)?
  • Are all languages supported (Internationalization/Localization)?
  • Are appropriate Typescript types implemented?

Copy link
Contributor

@josh-willis-arcadis josh-willis-arcadis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good. Not sure what is going on with getBaseColor yet.

lib/components/app/batch-routing-panel.tsx Outdated Show resolved Hide resolved
lib/components/form/advanced-settings-panel.tsx Outdated Show resolved Hide resolved
lib/components/form/advanced-settings-panel.tsx Outdated Show resolved Hide resolved
lib/components/form/util.tsx Outdated Show resolved Hide resolved
lib/components/mobile/batch-search-screen.tsx Outdated Show resolved Hide resolved
Copy link
Contributor

@daniel-heppner-ibigroup daniel-heppner-ibigroup left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Buttons look good, functionality good, just improve the types please!

lib/components/form/util.tsx Outdated Show resolved Hide resolved
lib/components/form/util.tsx Outdated Show resolved Hide resolved
lib/components/form/util.tsx Outdated Show resolved Hide resolved
@daniel-heppner-ibigroup daniel-heppner-ibigroup removed their assignment Jul 9, 2024
Copy link
Contributor

@daniel-heppner-ibigroup daniel-heppner-ibigroup left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I fixed both my and Josh's comments, @josh-willis-arcadis please look closely at my comments too to make sure they're actually fixed, since I was the one who fixed them I'd like to make sure they get a second look.

Copy link
Contributor

@josh-willis-arcadis josh-willis-arcadis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The changes look great! One thing I noticed is that if you uncheck every mode and then click "Plan Trip," you get an error message, followed by the "Preferences Saved" toast, and the advanced panel closes. If there is an error, I believe we shouldn't close the panel or display the toast.

gap: 0.5em;
background-color: var(--main-base-color, ${blue[900]});
border: 0;
width: 45%;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

super nit picky but from widths 992px - 1058px the trip text gets pushed to a new line. change the width to like 47% to fit the text on a single line.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Really clean, thank you!!

@amy-corson-ibigroup
Copy link
Contributor Author

@josh-willis-arcadis really good point about the toast. I went ahead and adjusted when the toast displays - now it will only happen when the user closes the panel and returns to the home page, and not when they click "plan trip"

@amy-corson-ibigroup
Copy link
Contributor Author

@josh-willis-arcadis @daniel-heppner-ibigroup thank you both so much for the help on this one!

@amy-corson-ibigroup amy-corson-ibigroup merged commit 5ed48dc into master-trip-form-update Jul 10, 2024
6 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants